package com.oocl.service.impl;

import com.oocl.exception.MyException;
import com.oocl.service.Service;



public abstract class ServiceFactory {
      public static ServiceFactory getServiceFactory(String factoryName) throws MyException{
    	  if(CustomerServiceFactory.CUSTOMER.equals(factoryName)){
    		  return new CustomerServiceFactory();
    	  }else if(FavcServiceFactory.FAVC.equals(factoryName)){
    		  return new FavcServiceFactory();
    	  }else{
    		  throw new MyException("can not factory '"+factoryName+"ServiceFactory'");
    	  }
      }
      
}
